package com.ankang.art.mapper;

import com.ankang.art.pto.HzsReultPto;
import com.ankang.art.vo.Examination;
import com.ankang.art.vo.Result;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface HzsResultMapper {

    void deleteResult(@Param("id") Integer id);

    Examination getExamination(@Param("examinationId") Integer examinationId );

    List<Result> getResult(@Param("studentId") Integer studentId);


    void updateResult(@Param("hzsReultPto") HzsReultPto hzsReultPto);

    void saveAvg(@Param("avg")Float avg,@Param("id")Integer id);

}
